package app.config;

import app.services.LibraryServiceModule;
import com.google.inject.Guice;
import org.javalite.activeweb.AppContext;
import org.javalite.activeweb.Bootstrap;
import org.javalite.activeweb.Configuration;

/**
 * @author Kseniya Artsiukhova <kartsiukhova@productiveedge.com>
 */
public class AppBootstrap extends Bootstrap {

    @Override
    public void init(AppContext context) {
        setInjector(Guice.createInjector(new LibraryServiceModule()));
        Configuration.setUseDefaultLayoutForErrors(true);
    }
}
